import { createApp } from 'vue';
//根组件
import App from './App.vue';
// 路由
import router from './router';
// pinia
import { pinia } from './store';
//重置样式
import './style/reset.scss';
import './assets/css/index.css';
// elementui
// 国际化
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';

import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app
  .use(router)
  .use(pinia)
  .use(ElementPlus, {
    locale: zhCn,
  })
  .mount('#app');
